# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=mt-st
pkgver=1.4
pkgrel=0
pkgdesc="Linux SCSI tape driver aware magnetic tape control"
url="https://github.com/iustin/mt-st"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/iustin/mt-st/archive/v$pkgver.tar.gz"

build() {
	make
}

package() {
	make \
		SBINDIR=$pkgdir/sbin \
		BINDIR=$pkgdir/bin \
		MANDIR=$pkgdir/usr/share/man \
		COMPLETIONINSTALLDIR=$pkgdir/usr/share/bash-completion/completions install
}

sha512sums="a07ac7bbecb00df248cf4de18917fcb10aa47bd1b5ef72e3da06a0cef7a1396c803db1cf085b5b827a130b760947da9837b35ff097fcf669815121295efa8463  mt-st-1.4.tar.gz"
